<?php $user_role = $this->session->userdata('admin_role');

?>
<style>
    #search_form {
        margin-bottom: 20px;
    }
</style>
<div id="content">
    <div id="title_content">Danh sách khách hàng chưa thanh toán</div>

    <?php if ($this->session->flashdata('error')): ?>
        <div class="affiche_erreur">
            <?php echo $this->session->flashdata('error'); ?>
        </div>
    <?php endif; ?>

    <table class="list" width="100%">
        <thead>
            <tr>


                <th>Tên công ty </th>
                <th>Email</th>
                <th>Điện thoại</th>
                <th>Địa chỉ</th>
                <th>Dịch vụ</th>
                <th>Tên website</th>
                <th>Ngày kết thúc</th>
                <th>Số tiền</th>
                <th>Action</th>
               
            </tr>
        </thead>
        <tbody>
            <?php
            if (isset($data) && !empty($data)):
                foreach ($data as $aRow):
                    ?>
                    <tr>
                        <td><a href="<?php echo site_url('khach_hang/thong_tin_khach_hang/') . '/' . $aRow['id']; ?>"><?php echo $aRow['ten_cong_ty']; ?></a></td>
                        <td><?php echo $aRow['email']; ?></td>
                        <td><?php echo $aRow['dien_thoai']; ?></td>
                        <td><?php echo $aRow['dia_chi']; ?></td>
                        <td><?php echo $aRow['ten_dich_vu']; ?></td>
                        <td><?php echo $aRow['ten_website']; ?></td>
                        <td><?php echo date('d/m/Y', $aRow['ngay_ket_thuc']); ?></td>
                        <td><?php echo $aRow['so_tien']; ?></td>
                        <td><a href="<?php echo site_url('thanh_toan/thanh_toan_dich_vu/') . '/' . $aRow['dich_vu_id']; ?>">chi tiết</a></td>
                                          
                    </tr>
                <?php endforeach; ?>
            <?php endif; ?>
        </tbody>
    </table>
   
    <?php if (isset($pagination)) {
        echo $pagination;
    }
    ?>




</div>
<!--END content-->
